package comun.casacentral.log;

public class CasaLogger {

	public static void log(String mensaje) {
		final StackTraceElement[] ste = Thread.currentThread().getStackTrace();
		System.out.println(ste[2].getClassName() + "." + ste[2].getMethodName()
				+ "() Linea: " + ste[2].getLineNumber() + " " + mensaje);
	}

	public static void log() {
		final StackTraceElement[] ste = Thread.currentThread().getStackTrace();
		System.out.println(ste[2].getClassName() + "." + ste[2].getMethodName()
				+ "() Linea: " + ste[2].getLineNumber() + " ");
	}

}
